home *** CD-ROM | disk | FTP | other *** search
/ Delphi Developer's Kit 1996 / Delphi Developer's Kit 1996.iso / power / source8 / usimple.pas < prev    next >
Pascal/Delphi Source File  |  1995-12-22  |  687b  |  40 lines

  1. {Part of Imagelib VCL/DLL Library.
  2.  
  3. Written by Jan Dekkers and Kevin Adams}
  4.  
  5. unit Usimple;
  6.  
  7. interface
  8.  
  9. uses
  10.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  11.   Forms, Dialogs, StdCtrls, tmulti;
  12.  
  13. type
  14.   TForm1 = class(TForm)
  15.     MultiImage1: TMultiImage;
  16.     Button1: TButton;
  17.     OpenDialog1: TOpenDialog;
  18.     procedure Button1Click(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. var
  26.   Form1: TForm1;
  27.  
  28. implementation
  29.  
  30. {$R *.DFM}
  31.  
  32. procedure TForm1.Button1Click(Sender: TObject);
  33. begin
  34.  if OpenDialog1.execute then
  35.   MultiImage1.Imagename:=OpenDialog1.filename;
  36. end;
  37.  
  38.  
  39. end.
  40.